package com.dianping.cat.alarm.sender.entity;

import com.dianping.cat.alarm.sender.BaseEntity;
import com.dianping.cat.alarm.sender.IVisitor;
import java.util.LinkedHashMap;
import java.util.Map;

public class SenderConfig
  extends BaseEntity<SenderConfig> {
/* 10 */   private Map<String, Sender> m_senders = new LinkedHashMap();






/* 17 */   public void accept(IVisitor visitor) { visitor.visitSenderConfig(this); }


  public SenderConfig addSender(Sender sender) {
/* 21 */     this.m_senders.put(sender.getId(), sender);
/* 22 */     return this;
  }


  public boolean equals(Object obj) {
/* 27 */     if (obj instanceof SenderConfig) {
/* 28 */       SenderConfig _o = (SenderConfig)obj;

/* 30 */       if (!equals(getSenders(), _o.getSenders())) {
/* 31 */         return false;
      }


/* 35 */       return true;
    }

/* 38 */     return false;
  }


/* 42 */   public Sender findSender(String id) { return (Sender)this.m_senders.get(id); }



/* 46 */   public Map<String, Sender> getSenders() { return this.m_senders; }





  public void mergeAttributes(SenderConfig other) {}



/* 63 */   public Sender removeSender(String id) { return (Sender)this.m_senders.remove(id); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/sender/entity/SenderConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */